<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Схема разработана Управлением актуализации и модернизации руководств по структурированным электронным медицинским документам (СЭМД) 2024 -->
<!-- Включены элементы разработанные Health Level Seven -->
<xsd:schema xmlns="urn:hl7-org:v3" xmlns:address="urn:hl7-ru:address" xmlns:fias="urn:hl7-ru:fias" xmlns:identity="urn:hl7-ru:identity" elementFormDefault="qualified" targetNamespace="urn:hl7-org:v3" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:import schemaLocation="fias.xsd" namespace="urn:hl7-ru:fias" />
  <xsd:import schemaLocation="address.xsd" namespace="urn:hl7-ru:address" />
  <xsd:import schemaLocation="identity.xsd" namespace="urn:hl7-ru:identity" />
  <xsd:include schemaLocation="coreschemas/datatypes.xsd" />
  <xsd:include schemaLocation="coreschemas/voc.xsd" />
  <xsd:include schemaLocation="coreschemas/NarrativeBlock.xsd" />
  <xsd:complexType name="POCD_MT000040.Component2">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="structuredBody" type="structuredBody_215" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="structuredBody_215">
    <xsd:sequence>
      <xsd:element minOccurs="3" maxOccurs="6" name="component" type="component_216" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="component_216">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="section" type="section_217" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="section_217">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_218" />
      <xsd:element minOccurs="1" maxOccurs="unbounded" name="entry" type="entry_219" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="code_218">
    <xsd:attribute name="code" use="required">
      <xsd:simpleType>
        <xsd:restriction base="cs">
          <xsd:enumeration value="WORK" />
          <xsd:enumeration value="DOCINFO" />
          <xsd:enumeration value="VITALPARAM" />
          <xsd:enumeration value="DGN" />
          <xsd:enumeration value="ALL" />
          <xsd:enumeration value="LINKDOCS" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.197" />
          <xsd:enumeration value="1.2.643.5.1.13.2.1.1.1504.23" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="entry_219">
    <xsd:sequence>
      <xsd:choice minOccurs="1">
        <xsd:element minOccurs="1" maxOccurs="1" name="act" type="act_343" />
        <xsd:element minOccurs="1" maxOccurs="1" name="observation" type="observation_220" />
        <xsd:element minOccurs="1" maxOccurs="1" name="organizer" type="organizer_295" />
      </xsd:choice>
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="observation_220">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_221" />
      <xsd:element minOccurs="0" maxOccurs="1" name="text" type="ED" />
      <xsd:element minOccurs="0" maxOccurs="1" name="effectiveTime" type="effectiveTime_233" />
      <xsd:element minOccurs="0" maxOccurs="1" name="value" type="ANY" />
      <xsd:element minOccurs="0" maxOccurs="1" name="participant" type="participant_324" />
      <xsd:element minOccurs="0" maxOccurs="unbounded" name="entryRelationship" type="entryRelationship_253" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActClassObservation">
          <xsd:enumeration value="OBS" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActMoodDocumentObservation">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="code_221">
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.166" />
          <xsd:enumeration value="1.2.643.5.1.13.2.1.1.1504.41" />
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1077" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="effectiveTime_233">
    <xsd:attribute name="value" type="ts" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="entryRelationship_253">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="observation" type="observation_254" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActRelationshipEntryRelationship">
          <xsd:enumeration value="COMP" />
          <xsd:enumeration value="MFST" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="observation_254">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_221" />
      <xsd:element minOccurs="0" maxOccurs="1" name="text" type="ED" />
      <xsd:element minOccurs="1" maxOccurs="1" name="value" type="ANY" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActClassObservation">
          <xsd:enumeration value="OBS" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActMoodDocumentObservation">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="organizer_295">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="statusCode" type="statusCode_296" />
      <xsd:element minOccurs="1" maxOccurs="1" name="effectiveTime" type="effectiveTime_297" />
      <xsd:element minOccurs="0" maxOccurs="1" name="precondition" type="precondition_298" />
      <xsd:element minOccurs="1" maxOccurs="2" name="component" type="component_302" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActClassDocumentEntryOrganizer">
          <xsd:enumeration value="CLUSTER" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActMood">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="statusCode_296">
    <xsd:attribute name="code" use="required">
      <xsd:simpleType>
        <xsd:restriction base="cs">
          <xsd:enumeration value="completed" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="effectiveTime_297">
    <xsd:attribute name="value" type="ts" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="precondition_298">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="criterion" type="criterion_299" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActRelationshipType">
          <xsd:enumeration value="PRCN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="criterion_299">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_300" />
      <xsd:element minOccurs="1" maxOccurs="1" name="value" type="ANY" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="code_300">
    <xsd:attribute name="code" use="required">
      <xsd:simpleType>
        <xsd:restriction base="cs">
          <xsd:enumeration value="ASSERTION" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="2.16.840.1.113883.5.4" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="component_302">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="observation" type="observation_303" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActRelationshipHasComponent">
          <xsd:enumeration value="COMP" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="observation_303">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_304" />
      <xsd:element minOccurs="1" maxOccurs="1" name="value" type="ANY" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActClassObservation">
          <xsd:enumeration value="OBS" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActMoodDocumentObservation">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="code_304">
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.262" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="translation_306">
    <xsd:attribute name="value" type="real" use="required" />
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1358" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="participant_324">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="participantRole" type="participantRole_325" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ParticipationType">
          <xsd:enumeration value="IND" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="participantRole_325">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="playingEntity" type="playingEntity_326" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" type="RoleClassRoot" use="required" />
  </xsd:complexType>
  <xsd:complexType name="playingEntity_326">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_327" />
      <xsd:element minOccurs="0" maxOccurs="1" name="desc" type="ED" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" type="EntityClassRoot" use="required" />
  </xsd:complexType>
  <xsd:complexType name="code_327">
    <xsd:attribute name="code" type="cs" use="optional" />
    <xsd:attribute name="codeSystem" use="optional">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.11.1367" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="optional" />
    <xsd:attribute name="codeSystemVersion" type="st" use="optional" />
    <xsd:attribute name="displayName" type="st" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
  </xsd:complexType>
  <xsd:complexType name="act_343">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_344" />
      <xsd:element minOccurs="0" maxOccurs="1" name="text" type="ED" />
      <xsd:element minOccurs="1" maxOccurs="1" name="effectiveTime" type="effectiveTime_346" />
      <xsd:element minOccurs="0" maxOccurs="3" name="entryRelationship" type="entryRelationship_347" />
      <xsd:element minOccurs="1" maxOccurs="1" name="reference" type="reference_359" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActClassDocumentEntryAct">
          <xsd:enumeration value="ACT" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_DocumentActMood">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="code_344">
    <xsd:attribute name="code" type="cs" use="required" />
    <xsd:attribute name="codeSystem" type="uid" use="required" />
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="effectiveTime_346">
    <xsd:attribute name="value" type="ts" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="entryRelationship_347">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="observation" type="observation_348" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActRelationshipEntryRelationship">
          <xsd:enumeration value="COMP" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="observation_348">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="code" type="code_349" />
      <xsd:element minOccurs="1" maxOccurs="1" name="value" type="ANY" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActClassObservation">
          <xsd:enumeration value="OBS" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActMoodDocumentObservation">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="code_349">
    <xsd:attribute name="code" use="required">
      <xsd:simpleType>
        <xsd:restriction base="cs">
          <xsd:enumeration value="11002" />
          <xsd:enumeration value="11003" />
          <xsd:enumeration value="6058" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystem" use="required">
      <xsd:simpleType>
        <xsd:restriction base="uid">
          <xsd:enumeration value="1.2.643.5.1.13.13.99.2.166" />
          <xsd:enumeration value="1.2.643.5.1.13.2.1.1.1504.41" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="codeSystemName" type="st" use="required" />
    <xsd:attribute name="codeSystemVersion" type="st" use="required" />
    <xsd:attribute name="displayName" type="st" use="required" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
  </xsd:complexType>
  <xsd:complexType name="reference_359">
    <xsd:sequence>
      <xsd:element minOccurs="1" maxOccurs="1" name="externalDocument" type="externalDocument_360" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="typeCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="x_ActRelationshipExternalReference">
          <xsd:enumeration value="REFR" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="externalDocument_360">
    <xsd:sequence>
      <xsd:element minOccurs="2" maxOccurs="2" name="id" type="id_361" />
    </xsd:sequence>
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="prohibited" />
    <xsd:attribute name="classCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActClassDocument">
          <xsd:enumeration value="DOCCLIN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
    <xsd:attribute name="moodCode" use="required">
      <xsd:simpleType>
        <xsd:restriction base="ActMood">
          <xsd:enumeration value="EVN" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:attribute>
  </xsd:complexType>
  <xsd:complexType name="id_361">
    <xsd:attribute name="root" type="uid" use="optional" />
    <xsd:attribute name="extension" type="st" use="optional" />
    <xsd:attribute name="nullFlavor" type="NullFlavor" use="optional" />
  </xsd:complexType>
</xsd:schema>
